package com.cskaoyan.controller;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.WxUserOrderVo;
import com.cskaoyan.service.WxUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:登录成功之后，个人页面用户相关信息回显功能实现。
 * @author: landz
 * @create: 2023-01-01 21:14
 * @version:
 */
@RestController
@RequestMapping("wx")
public class WxUserController {
    @Resource
    WxUserService wxUserService;


    /*
     * 登录成功之后，个人页面用户相关信息的回显功能实现
     *
     * @return com.cskaoyan.bean.common.BaseRespVo
     * @author landz
     * @create 2023/1/1 21:19
     **/
    @GetMapping("user/index")
    public BaseRespVo userIndex(){
        WxUserOrderVo wxUserIndexVo = wxUserService.userIndex();
        return BaseRespVo.ok(wxUserIndexVo);

    }

}
